package com.gingko.duominuo.data

sealed class Resource<T>(
    val data: T? = null,
    val throwable: Throwable? = null
) {
    class Success<T>(data: T?) : Resource<T>(data)
    class Error<T>(throwable: Throwable? = null) : Resource<T>(null,  throwable)
}